<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<h2 class="contentTitle">个人档案详情</h2>
<style type="text/css">
.yt_img_mag5{ margin:-3px 5px 0px 5px;}
.table_boder {
	LINE-HEIGHT: 20px; BORDER-COLLAPSE: collapse;
	width:100%
}
.table_boder td,.table_boder tr{
	padding:4px;
	clean:both;
}
.table_boder TD ,.table_boder th{
	LINE-HEIGHT: 20px;
	border: 1px solid #bed5f3;
}
.table_boder2 {
	LINE-HEIGHT: 20px; BORDER-COLLAPSE: collapse;
	width:100%
}
.table_boder2 td,.table_boder tr{
	padding:5px 2px 5px 10px;
}
.table_boder2 TD ,.table_boder th{
	LINE-HEIGHT: 20px;
	border: 1px solid #cccccc;
}
.tag{ margin-right:12px; no-repeat 0 center; background-color:#e4f4fc}
.jbxx-block{ background:#97CBFF; font-weight:bold; line-height:22px; padding:3px 5px;}
.bitian{color:red;}

#jxqk_c3_jdxx_div .textInput { float:none;}
#g1jdxx_div .textInput { float:none;}
#g2jdxx_div .textInput { float:none;}
#g3jdxx_div .textInput { float:none;}
#_sqxx_div .textInput { float:none;}
#_tr_dz .textInput { float:none;}
</style>
<form method="post" id="pomrForm" action="doUpdatePomr.do" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone,'','ydjk_call_befor()')">
<div class="pageContent" >
	<table cellspacing="0" cellpadding="0" width="100%" class="table_boder" layoutH="75">
		<tr  style="display: none"><td><input name="uid" value="${pomr.uid}"/></td></tr>
		<tr class="jbxx-block">
			<td colspan="6"><strong>基本信息</strong></td>
		</tr>
		<tr>
			<input style="display: none" name="uid" value="${pomr.uid}"/>
			<td class="tag">证件档案号</td>
			<td><input name="jkdah" id="_jkdah" type="text"	value="${pomr.jkdah}" class="required textInput" />
			</td>
			<td class="tag" >建档机构</td>
			<td><input name="jdjg" id="_jdjg" type="text"	value="${pomr.jdjg}" class="required textInput" />
			</td>
			<td class="tag" width="150px">建档人</td>
			<td><input name="jdr" type="text" value="${pomr.jdr}" class="textInput" >
			</td>
		</tr>
		<tr>
			<td class="tag">姓名</td>
			<td><input name="xm" id="_xm" type="text"value="${pomr.xm }"/></td>
			<td class="tag">性别</td>
			<td>
				<select  name="xbm" > 
					<option value="">--请选择--</option>
					<option value="1"  <c:if test="${pomr.xbm==1}">selected="selected" </c:if> >男</option>
					<option value="0" <c:if test="${pomr.xbm==0}"> selected="selected" </c:if> >女</option>
			 	</select>
			</td>
			
			<td class="tag" width="150px">建档时间</td>
			<td><input name="jdsj" id="_jdsj" type="text" value="<fmt:formatDate value='${pomr.jdsj}' pattern='yyyy-MM-dd'/>" class="date" />
			</td>
		</tr>
		<tr>
			<td class="tag">证件类型</td>
			<td>
				<select  name="zjlx" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmZjlx}" var="zjlxNode">
						<option value="${zjlxNode.zid}"  <c:if test="${mapPomrInfo.zjlxid==zjlxNode.zid}">selected="selected" </c:if> >${zjlxNode.mc}</option>
					</c:forEach>
			 	</select>
			</td> 
			<td class="tag">证件号</td>
			<td><input name="zjh" id="_zjh" type="text" readonly="true"
				value="${pomr.zjh}"class="required" /> 
			<td class="tag">旧档案号</td>
			<td><input name="jdah" id="_jdah" type="text"
				value="${pomr.jdah}"	maxlength="18" class="required textInput" /></td>
		</tr>
		<tr>
			<td class="tag">婚姻状况</td>
			<td>
				<select  name="hyzk" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmHyzk}" var="hyzkNode">
						<option value="${hyzkNode.hid}"  <c:if test="${mapPomrInfo.hyzkid==zjlxNode.zid}">selected="selected" </c:if> >${hyzkNode.mc}</option>
					</c:forEach>
			 	</select>
			</td>	
			<td class="tag">职位</td>
			<td>
				<select  name="zw" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmZw}" var="zwNode">
						<option value="${zwNode.zid}"  <c:if test="${mapPomrInfo.zwid==zjlxNode.zid}">selected="selected" </c:if> >${zwNode.mc}</option>
					</c:forEach>
			 	</select>
			</td>
			<td class="tag">文化程度</td>
			<td>
				<select  name="whcd" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmWhcd}" var="whcdNode">
						<option value="${whcdNode.wid}"  <c:if test="${mapPomrInfo.whcdid==whcdNode.wid}">selected="selected" </c:if> >${whcdNode.mc}</option>
					</c:forEach>
			 	</select>
			</td>
		</tr>
		<tr>
			<td class="tag">本人电话</td>
			<td><input class="" name="brdh" id="_brdh" type="text" value="${pomr.brdh }" />
			<td class="tag">联系人电话</td>
			<td><input class="" name="lxrdh" id="_lxrdh" type="text"value="${pomr.lxrdh }" />
			<td class="tag">联系人姓名</td>
			<td><input class="" name="lxrxm" id="_lxrxm" type="text"value="${pomr.lxrxm }" />
		</tr>
		<tr>
			<td class="tag">父亲姓名</td>
			<td><input class="" name="fqxm" id="_fqxm" type="text" value="${pomr.fqxm}" />
			<td class="tag">母亲姓名</td>
			<td><input class="" name="mqxm" id="_mqxm"  type="text" value="${pomr.mqxm }" />
			<td class="tag">监护人姓名</td>
			<td><input class="" name="jhrxm" id="_jhrxm"  type="text" value="${pomr.jhrxm }" />
		</tr>
		<tr>
			<td class="tag">家庭电话</td>
			<td><input class="" name="jtdh" id="_jtdh" type="text"	value="${pomr.jtdh}" />
			<td class="tag">人群类型</td>
			<td>
				<select  name="rqlx" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmRqlx}" var="rqlxNode">
						<option value="${rqlxNode.rid}"  <c:if test="${mapPomrInfo.rqlxid==rqlxNode.rid}">selected="selected" </c:if> >${rqlxNode.mc}</option>
					</c:forEach>
			 	</select>
			</td>
			<td class="tag">居住类型</td>
			<td>
				<select  name="jzlx" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmJzlx}" var="jzlxNode">
						<option value="${jzlxNode.jid}"  <c:if test="${mapPomrInfo.jzlxid==jzlxNode.jid}">selected="selected" </c:if> >${jzlxNode.mc}</option>
					</c:forEach>
			 	</select>
			</td>
		</tr>
		<tr>
			<td class="tag">现住址村委会</td>
			<td><input class="" name="xzzqwh" type="text"  value="${pomr.xzzqwh}" />
			<td class="tag">户籍地委员会</td>
			<td><input class="" name="hjdwyh"  type="text"	value="${pomr.hjdwyh}" />
		</tr>
		<tr>
			<td class="tag">现住址</td>
			<td colspan="2"><input class="" name="xzz"  type="text" value="${pomr.xzz}" />
			<td class="tag">户籍住址</td>
			<td colspan="2"><input class="" name="hjzz" type="text" value="${pomr.hjzz}" />
		</tr>
		<tr>
			<td class="tag">RH阴性</td>
			<td><input class="" name="rh" 	type="text"	value="${pomr.rh}" />
			<td class="tag">血型</td>
			<td>
				<select  name="xx" > 
					<option value="">--请选择--</option>
					<c:forEach items="${dmXx}" var="xxNode">
						<option value="${xxNode.xid}"  <c:if test="${mapPomrInfo.xxid==xxNode.xid}">selected="selected" </c:if> >${xxNode.mc}</option>
					</c:forEach>
			 	</select>
			</td>
		</tr>
		
		<tr class="jbxx-block">
			<td colspan="6"><strong>健康信息</strong></td>
		</tr>
		<tr>
			<td class="tag">药物过敏史</td>
			<c:choose>
			<c:when test="${empty pomrCascade['ywgms']}">
			   <td><input name="ywgms" type="checkbox" checked="checked" value="无"/>无
			</c:when>
			<c:otherwise>
				<td><input name="ywgms" type="checkbox" value="无"/>无
			</c:otherwise>
			</c:choose>
			<td colspan="4">
				<div id="ywgms">
				   <c:forEach items="${mapDm['ywgms_y'] }" var='ywgms_y'>
				       <input name="ywgms" type="checkbox" checked="checked" value="${ywgms_y}"/>${ywgms_y}
					</c:forEach>
					<c:forEach items="${mapDm['ywgms_n'] }" var='ywgms_n'>
				       <input name="ywgms" type="checkbox" value="${ywgms_n}"/>${ywgms_n}
					</c:forEach>
				</div>
			</td>
		</tr>
		<tr>
			<td class="tag">暴露史</td>
			<c:choose>
			<c:when test="${empty pomrCascade['bls']}">
			   <td><input name="bls" type="checkbox" checked="checked" value="无"/>无
			</c:when>
			<c:otherwise>
				<td><input name="bls" type="checkbox" value="无"/>无
			</c:otherwise>
			</c:choose>
			<td colspan="4">
				<div id="bls">
				   <c:forEach items="${mapDm['bls_y'] }" var='bls_y'>
				       <input name="bls" type="checkbox" checked="checked" value="${bls_y}"/>${bls_y}
					</c:forEach>
					<c:forEach items="${mapDm['bls_n'] }" var='bls_n'>
				       <input name="bls" type="checkbox" value="${bls_n}"/>${bls_n}
					</c:forEach>
				</div>
			</td>	
		</tr>
		<tr>
			<td class="tag">残疾</td>
			<c:choose>
			<c:when test="${empty pomrCascade['cj']}">
			   <td><input name="cj" type="checkbox" checked="checked" value="无"/>
			</c:when>
			<c:otherwise>
				<td><input name="cj" type="checkbox" value="无"/>无
			</c:otherwise>
			</c:choose>
			<td colspan="4">
				<div id="cj">
				   <c:forEach items="${mapDm['cj_y'] }" var='cj_y'>
				       <input name="cj" type="checkbox" checked="checked" value="${cj_y}"/>${cj_y}
					</c:forEach>
					<c:forEach items="${mapDm['cj_n'] }" var='cj_n'>
				       <input name="cj" type="checkbox" value="${cj_n}"/>${cj_n}
					</c:forEach>
				</div>
			</td>	
		</tr>
		
		<tr>
			<td class="tag">燃料类型</td>
			<td colspan="4">
				<div id="rllx">
				   <c:forEach items="${mapDm['rllx_y'] }" var='rllx_y'>
				       <input name="rllx" type="checkbox" checked="checked" value="${rllx_y}"/>${rllx_y}
					</c:forEach>
					<c:forEach items="${mapDm['rllx_n'] }" var='rllx_n'>
				       <input name="rllx" type="checkbox" value="${rllx_n}"/>${rllx_n}
					</c:forEach>
				</div>
			</td>	
		</tr>
		
		<tr>
			<td class="tag">厕所</td>
			<td colspan="4">
				<div id="cs">
				   <c:forEach items="${mapDm['cs_y'] }" var='cs_y'>
				       <input name="cs" type="checkbox" checked="checked" value="${cs_y}"/>${cs_y}
					</c:forEach>
					<c:forEach items="${mapDm['cs_n'] }" var='cs_n'>
				       <input name="cs" type="checkbox" value="${cs_n}"/>${cs_n}
					</c:forEach>
				</div>
			</td>	
		</tr>
		
		<tr>
			<td class="tag">饮水</td>
			<td colspan="4">
				<div id="ys">
				   <c:forEach items="${mapDm['ys_y'] }" var='ys_y'>
				       <input name="ys" type="checkbox" checked="checked" value="${ys_y}"/>${ys_y}
					</c:forEach>
					<c:forEach items="${mapDm['ys_n'] }" var='ys_n'>
				       <input name="ys" type="checkbox" value="${ys_n}"/>${ys_n}
					</c:forEach>
				</div>
			</td>	
		</tr>
		
		<tr>
			<td class="tag" rowspan="13">疾病</td>
			<c:choose>
			<c:when test="${empty pomrCascadeSj['jb_y']}">
			   <td rowspan="13"><input name="jb" type="checkbox" checked="checked"  value="无"/>无
			</c:when>
			<c:otherwise>
				<td rowspan="13"><input name="jb" type="checkbox" value="无" />无
			</c:otherwise>
			</c:choose>
				<div id="jb">					
				   <c:forEach items="${pomrCascadeSj['jb_y'] }" var='jb_y'>
					<tr>
					<td colspan='2'>
						<input name="jb" type="checkbox" checked="checked" value="${jb_y['jid']}#${jb_y['qzsj']}">
				       		疾病名称：<input name="qzsj"value="${jb_y['mc']}">
				     </td>
				     <td colspan='2'>
				       	确诊时间：<input name="jb"  class="date"  type="textInput"value="${jb_y['qzsj']}"/>
				      </td>
				      </tr>
					</c:forEach>
					<c:forEach items="${pomrCascadeSj['jb_n'] }" var='jb_n'>
					<tr>
						<td colspan='2'>
						<input type="checkbox" value="${jb_n['jid']}#${jb_n['qzsj']}">
				  	   	  	疾病名称：<input name="qzsj" value="${jb_n['mc']}">				       
				    	</td>
				    	<td colspan='2'>
				       		确诊时间：<input name="jb" class="date" value="${jb_n['qzsj']}"/>
						</td>
				    </tr>
					</c:forEach>
				</div>
		</tr>
		<tr>
			<td class="tag" rowspan="4">手术</td>
			<c:choose>
			<c:when test="${empty pomrCascadeSj['ss_y']}">
			   <td rowspan="4"><input name="ss" type="checkbox" checked="checked"  value="无"/>无
			</c:when>
			<c:otherwise>
				<td rowspan="4"><input name="ss" type="checkbox" value="无" />无
			</c:otherwise>
			</c:choose>
				<div id="ss">					
				   <c:forEach items="${pomrCascadeSj['ss_y'] }" var='ss_y'>
					<tr>
					<td colspan='2'>
					<input name="ss" type="checkbox" checked="checked" value="${ss_y['id']}#${ss_y['sssj']}">
				      	 手术名称：<input value="${ss_y['mc']}">
				     </td>
				     <td colspan='2'>
				      	 手术时间：<input name="sssj"  class="date"  type="textInput" value="${ss_y['sssj']}"/>
				      </td>
				      </tr>
					</c:forEach>
					<c:forEach items="${pomrCascadeSj['ss_n'] }" var='ss_n'>
					<tr>
					<td colspan='2'>
					<input name="ss" type="checkbox" value="${ss_n['id']}">
				     	  手术名称：<input name="sssj" value="${ss_n['mc']}">				       
				    </td>
				    <td colspan='2'>
				      	 手术时间：<input name="sssj" class="date" value="${ss_n['sssj']}"/>
					</td>
				    </tr>
					</c:forEach>
				</div>
		</tr>
		<tr>
			<td class="tag" rowspan="6">外伤</td>
			<c:choose>
			<c:when test="${empty pomrCascadeSj['ws_y']}">
			   <td rowspan="6"><input name="ws" type="checkbox" checked="checked"  value="无"/>无
			</c:when>
			<c:otherwise>
				<td rowspan="6"><input name="ws" type="checkbox" value="无" />无
			</c:otherwise>
			</c:choose>
				<div id="ws">					
				   <c:forEach items="${pomrCascadeSj['ws_y'] }" var='ws_y'>
					<tr>
					<td colspan='2'>
					<input type="checkbox" checked="checked" value="${ws_y['id']}">
				       外伤名称：<input name="qzsj" value="${ws_y['mc']}">
				     </td>
				     <td colspan='2'>
				       确诊时间：<input name="ws"  class="date"  type="textInput"value="${ws_y['qzsj']}"/>
				      </td>
				      </tr>
					</c:forEach>
					<c:forEach items="${pomrCascadeSj['ws_n'] }" var='ws_n'>
					<tr>
					<td colspan='2'>
					<input type="checkbox" value="${ws_n['id']}">
				       外伤名称：<input name="qzsj" value="${ws_n['mc']}">				       
				    </td>
				    <td colspan='2'>
				       确诊时间：<input name="ws" class="date" value="${ws_n['qzsj']}"/>
					</td>
				    </tr>
					</c:forEach>
				</div>
		</tr>	
		<tr>
			<td class="tag" rowspan="6">输血</td>
			<c:choose>
			<c:when test="${empty pomrCascadeSj['sx_y']}">
			   <td rowspan="6"><input name="sx" type="checkbox" checked="checked"  value="无"/>无
			</c:when>
			<c:otherwise>
				<td rowspan="6"><input name="sx" type="checkbox" value="无" />无
			</c:otherwise>
			</c:choose>
				<div id="sx">					
				   <c:forEach items="${pomrCascadeSj['sx_y'] }" var='sx_y'>
					<tr>
					<td colspan='2'>
					<input type="checkbox" checked="checked" value="${sx_y['id']}">
				       输血名称：<input name="sxsj" value="${sx_y['mc']}">
				     </td>
				     <td colspan='2'>
				       输血时间：<input name="sx"  class="date"  type="textInput"value="${sx_y['sxsj']}"/>
				      </td>
				      </tr>
					</c:forEach>
					<c:forEach items="${pomrCascadeSj['sx_n'] }" var='sx_n'>
					<tr>
					<td colspan='2'>
					<input type="checkbox" value="${sx_n['id']}">
				       输血名称：<input name="sxsj" value="${sx_n['mc']}">				       
				    </td>
				    <td colspan='2'>
				       输血时间：<input name="sx" class="date" value="${sx_n['sxsj']}"/>
					</td>
				    </tr>
					</c:forEach>
				</div>
		</tr>	
	
	</table>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive">
					<div class="buttonContent">
						<button type="submit">保存</button>
					</div>
				</div></li>
			<li><div class="button">
					<div class="buttonContent">
						<button type="button" class="close">返回</button>
					</div>
				</div></li>
		</ul>
	</div>

</div>
</form>
